﻿using Microsoft.Owin.Hosting;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace jczUserService
{
    class Program
    {
        static void Main(string[] args)
        {
            /*//string connStr = ConfigurationManager.ConnectionStrings["strCon"].ToString();
            string baseAddress = ConfigurationManager.AppSettings["UserServerUrl"].ToString();
            //string baseAddress = "http://localhost:9100/";
            // Start OWIN host 
            Console.WriteLine("服务器地址：" + baseAddress);
            //WebApp.Start<Startup>(url: baseAddress);
            using (WebApp.Start<Startup>(baseAddress))
            {
                Console.WriteLine("Running on {0}", baseAddress);
                Console.WriteLine("Press enter to exit");
                Console.ReadLine();
            }
            Console.WriteLine("Press key 'q' to stop it!");

            while (Console.ReadKey().KeyChar != 'q')
            {
                Console.WriteLine();
                continue;
            }*/
        }
    }
}
